import request from '@/utils/request'

// 查询学习记录列表
export function listLearning_record(query) {
  return request({
    url: '/study/learning_record/list',
    method: 'get',
    params: query
  })
}

// 查询学习记录详细
export function getLearning_record(id) {
  return request({
    url: '/study/learning_record/' + id,
    method: 'get'
  })
}

// 新增学习记录
export function addLearning_record(data) {
  return request({
    url: '/study/learning_record',
    method: 'post',
    data: data
  })
}

// 修改学习记录
export function updateLearning_record(data) {
  return request({
    url: '/study/learning_record',
    method: 'put',
    data: data
  })
}

// 删除学习记录
export function delLearning_record(id) {
  return request({
    url: '/study/learning_record/' + id,
    method: 'delete'
  })
}
